package com.udata.client.place;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class TiebaExpPlace extends Place {
  private String token;

  public TiebaExpPlace(String token) {
    this.token = token;
  }

  public String getTokenName() {
    return token;
  }

  public static class Tokenizer implements PlaceTokenizer<TiebaExpPlace> {
    @Override
    public String getToken(TiebaExpPlace place) {
      return place.getTokenName();
    }

    @Override
    public TiebaExpPlace getPlace(String token) {
      return new TiebaExpPlace(token);
    }
  }
}